home *** CD-ROM | disk | FTP | other *** search
- Path: orion.supernet.ab.ca!news
- From: lts@news.supernet.ab.ca (Len Starrenburg)
- Newsgroups: comp.lang.c
- Subject: Q: free() function
- Date: 7 Apr 1996 15:03:03 -0600
- Organization: Alberta SuperNet Inc
- Message-ID: <4k9ai7$rck@tibalt.supernet.ab.ca>
- NNTP-Posting-Host: tibalt.supernet.ab.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- When dynamically allocating memory for a series of strings and storing
- the addresses in a char pointer array, can all the allocated memory be
- freed simply using "free(array)" or does "free(array[x])" have to be
- executed for each pointer in the array.
-
- I think the latter would be correct but I'm not 100% sure, please comment.
-
- -lts
-